<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <!-- 此页面不再使用-->
    <title>资讯列表</title>
    <link rel="stylesheet" href="${ctx}/static/styles/news/newslist.css" type="text/css">
</head>

<body>
<div class="news-main">
    <div class="container">
        <h2>检索结果列表</h2>
        <ul class="news-list">

            <c:forEach items="${stds.content}" var="std">
                <li class="news-item std-item">
                    <div class="news-title">
                        <a href="${ctx}/std/detail/${std.id}">${std.name}</a>
                    </div>

                    <div class="std-line">
                        中文名：<a href="${ctx}/std/detail/${std.id}">${std.titleCn}</a>
                    </div>
                    <div class="std-line">
                        英文名：<span class="std-item-it">${std.titleEn}</span>
                    </div>
                    <div class="news-info">
                        <span>发布时间：<fmt:formatDate value="${std.publishDate}" type="date" dateStyle="long"/></span>
                        <span>生效时间：<fmt:formatDate value="${std.effectiveDate}" type="date" dateStyle="long"/></span>
                    </div>
                </li>
            </c:forEach>
        </ul>
        <tags:pagination_solr_simple page="${stds}" paginationSize="10"/>
    </div>
</div>
</body>
</html>
